package models

import "gorm.io/gorm"

type Online_consult_desc struct {
	gorm.Model
	ConsultId    int    `gorm:"type:int;comment:'问诊 ID'"`
	UserId       int    `gorm:"type:int;comment:'用户id'"`
	DoctorId     int    `gorm:"type:int;comment:'医生 ID'"`
	DepartmentId int    `gorm:"type:int;comment:'科室id'"`
	Ontype       int    `gorm:"type:int;comment:'问诊类型'"`
	MainComplain string `gorm:"type:int;comment:'主诉内容'"`
	Status       int    `gorm:"type:int;comment:'问诊状态'"`
}

func (ol *Online_consult_desc) Creat(db *gorm.DB) error {
	err := db.Create(&ol).Error
	return err
}
